feat: Add booking audit log viewer with filtering and permissions#25152
Merged
hariombalhara merged 2 commits intobooking-audit-more-infrafrom Dec 6, 2025
Merged
feat: Add booking audit log viewer with filtering and permissions#25152hariombalhara merged 2 commits intobooking-audit-more-infrafrom
hariombalhara merged 2 commits intobooking-audit-more-infrafrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Nov 14, 2025
3 tasks
2b6d061 to
cc51d6f
Compare
50f570c to
1b3298e
Compare
cc51d6f to
1a35c20
Compare
1b3298e to
1453ed2
Compare
1a35c20 to
137a356
Compare
137a356 to
f81a44f
Compare
d324464 to
2c09499
Compare
f81a44f to
616bc4c
Compare
616bc4c to
88398f4
Compare
2c09499 to
1517750
Compare
3 tasks
2a72799 to
c6a4033
Compare
e288b97 to
0fc820d
Compare
12 tasks
0fc820d to
6ab16b9
Compare
c6a4033 to
a561adf
Compare
3 tasks
6ab16b9 to
4d6bbbb
Compare
a561adf to
e81c326
Compare
e81c326 to
fde380a
Compare
4d6bbbb to
0ce15a5
Compare
Base automatically changed from
booking-audit-consumer-producer
to
booking-audit-more-infra
December 6, 2025 06:24
0ce15a5
into
booking-audit-more-infra
11 of 13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR do?
This PR implements a booking audit log viewer as part of the Booking Audit Stack. It adds:
viewer.bookings.getAuditLogs) that fetches audit logs for a specific booking with permission checks/booking/logs/[bookinguid]to display the audit historyPermission model: Only the booking owner, attendees, or team admins/owners can view audit logs for a booking.
Link to Devin run: https://app.devin.ai/sessions/1526633c2f714bcb88952e8cbcda9cfa
Requested by: hariom@cal.com (@hariombalhara)
Key Implementation Details
Backend (
getAuditLogs.handler.ts)bookingAuditrecords for the booking UIDuserUuidis presentFrontend (
booking-logs-view.tsx)Human Review Checklist
Permission logic (
getAuditLogs.handler.ts:44-81): Verify the permission checks cover all scenarios:Performance (
getAuditLogs.handler.ts:108-142): The handler usesPromise.allto enrich actor data in a loop. For bookings with many audit logs, this could be slow:Type safety: The enriched audit logs modify the structure from Prisma's return type. Verify TypeScript catches any type mismatches.
Internationalization: Some UI strings are hardcoded (e.g., "Booking History", action display names). Verify all user-facing text uses the translation system.
UI edge cases: The component hasn't been tested with:
How should this be tested?
Prerequisites:
bookingAuditrecords populatedTest scenarios:
/booking/logs/{valid-booking-uid}as the booking owner → should see audit logsEnvironment variables:
Mandatory Tasks (DO NOT REMOVE)
Checklist